﻿<Window x:Class="C11_PRC_Editor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dd="clr-namespace:Engine.FileFormats3D.C11Undercover;assembly=Engine"
         xmlns:local = "clr-namespace:C11_PRC_Editor"
        Name="mainWindow"
    WindowStyle="None"
    WindowState="Normal"
    ResizeMode="CanResizeWithGrip"
        Title="MainWindow" Height="350" Width="525"
         AllowsTransparency="True" Background="Transparent"
        MaxWidth="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Width}"
MaxHeight="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Height}">

    <WindowChrome.WindowChrome>
        <WindowChrome
        CaptionHeight="5"
        ResizeBorderThickness="1" />
    </WindowChrome.WindowChrome>

    <Window.DataContext>
        <local:C11UCPrcEditor x:Name="editor" />
        <!--<dd:C11UcPrcFile x:Name="prcFile" Sun="11" />-->
    </Window.DataContext>

    <Border BorderThickness="15" BorderBrush="Transparent" CornerRadius="20,20,20,20" Background="#FFFF8000">
        <Border.BitmapEffect>
            <DropShadowBitmapEffect Color="Red" Direction="320" ShadowDepth="0" Opacity="0.9" Softness="5" />
        </Border.BitmapEffect>

        <Grid Margin="10">
            <StackPanel Background="Transparent">
                <Grid MouseMove="Grid_MouseMove" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
                    <Rectangle Name="TitleBar" Fill="Transparent" HorizontalAlignment="Stretch" Height="32" VerticalAlignment="Top" />
                    <Button x:Name="Btnclose" Content="r" HorizontalAlignment="Right" VerticalAlignment="Top" Width="35" Height="35" Click="Btnclose_Click" />
                    <Button x:Name="Btnmax" Content="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,35,0" Width="35" Height="35" Click="Btnmax_Click" />
                    <Button x:Name="Btnmin" Content="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,70,0" Width="35" Height="35" Click="Btnmin_Click" />
                </Grid>
                <Label Background="#22880000" Content= "C11 Undercover PRC-Editor" FontSize="20" />

                <Menu DockPanel.Dock="Top" Background="#22000000">
                    <MenuItem Header="_File" Background="White">
                        <MenuItem Header="_Open" Click="MenuItem_Load_Click" />
                        <MenuItem Header="_Save" Click="MenuItem_Save_Click" />
                        <MenuItem Header="_Close" />
                    </MenuItem>
                </Menu>

                <local:ControlTest x:Name="SunTextBox" Height="32" LabelText="Sun"    TextBoxText="{Binding ElementName=editor, Path=Sun, Mode=TwoWay, StringFormat={}{0:0.000}}" />
                <local:ControlTest x:Name="AmbExtraTextBox" Height="32" LabelText="AmbExtra"    TextBoxText="{Binding ElementName=editor, Path=AmbExtra, Mode=TwoWay, StringFormat={}{0:0.000}}" />

                <TextBox x:Name="HalloText" Text="{Binding  ElementName=editor, Path=Sun, Mode=TwoWay, StringFormat={}{0:0.000}}" Margin="50,0,0,10" />
            </StackPanel>
        </Grid>
    </Border>
</Window>